package com.tedu.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.tedu.dao.DoorMapper;
import com.tedu.pojo.Door;

@RestController

public class DoorController2 {
	
	@Autowired
	private DoorMapper dao;
	
	/** 1、查询所有门店功能 */
	@RequestMapping("/vue/doorList")
	
	public List<Door> doorList( Model model ) {
		//查询所有门店的集合
		List<Door> list = dao.findAll();
		
		return list;
	}
	
	
	
	
	
}






